"use strict"

/**
 * 邯郸市政府采购网爬虫
 *  
 */

var Base = require("./base");
var hd_spider = new Base();
hd_spider.name = "邯郸市政府采购网";
hd_spider.encode = "GBK";

hd_spider.getPageUrl = function (pg) {
    return "http://www.zgazxxw.com/he-040008l772-" + pg + ".html";
};

hd_spider.getItems = function ($) {
    var items = [];
    $(".list_zb02 table tr td a").each(function (index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.attr("title");
        item.url = e.attr("href");
        item.source = hd_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = hd_spider;